package com.fx.zmlzml.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fx.zmlzml.entity.PcMotherboard;
import com.fx.zmlzml.mapper.PcMotherboardMapper;
import com.fx.zmlzml.service.PcMotherboardService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 电脑主板Service实现类
 * 实现电脑主板相关的业务逻辑
 */
@Service
public class PcMotherboardServiceImpl extends ServiceImpl<PcMotherboardMapper, PcMotherboard> implements PcMotherboardService {
    
    private static final Logger logger = LoggerFactory.getLogger(PcMotherboardServiceImpl.class);
    
    @Override
    public List<PcMotherboard> getListByParams(Integer maxPrice, Integer minPrice) {
        logger.info("查询所有符合条件的电脑主板列表，查询条件：maxPrice={}, minPrice={}", maxPrice, minPrice);
        List<PcMotherboard> list = baseMapper.getListByParams(maxPrice, minPrice);
        logger.info("主板总条数：{}", list.size());
        return list;
    }
}